typedef struct {
    int x;
    int y;
} POINT;
void input(POINT *q) {
    // printf("inside input:&q=%x\n",&q);
    //scanf("%d%d",&(*q).x,&(*q).y);//right but ugly
    scanf("%d%d",&q->x,&q->y);
}
void output(POINT *q) {
    printf("(%d,%d)",q->x,q->y);
}

int main() {
    POINT q,p;
    printf("inside main:&q=%x\n",&q);
    //scanf("%d%d",&q.x,&q.y);

    input(&q);
    //printf("(%d,%d)",q.x,q.y);
    output(&q);
    return 0;
}
